import axios from 'common/js/axios'
// 创建套餐
export function menuCreate(json) {
    const url = '/menu/menuCreate'

    return axios.post(url, json)
}

// 显示单个套餐
export function menuEdit(json) {
    const url = '/menu/menuEdit'

    return axios.post(url, json)
}

// 删除套餐
export function menuDelete(json) {
    const url = '/menu/menuDelete'

    return axios.post(url, json)
}

// 开启/关闭套餐
export function menuStatus(json) {
    const url = '/menu/menuStatus'

    return axios.post(url, json)
}

// 套餐列表
export function menuList(json) {
    const url = '/menu/menuList'

    return axios.post(url, json)
}


// 显示单个会员
export function memberEdit(json) {
    const url = '/menu/memberEdit'

    return axios.post(url, json)
}


// 创建会员配置
export function memberCreate(json) {
    const url = '/menu/memberCreate'

    return axios.post(url, json)
}

// 购买会员
export function buyMember(json) {
    const url = '/company/buyMember'

    return axios.post(url, json)
}

//取消会员
export function cancelMemberRight(json) {
    const url = 'company/cancelMemberRight'

    return axios.post(url, json)
}

//初始化会员权益
export function initMemberRight(json) {
    const url = 'company/initMemberRight'

    return axios.post(url, json)
}